﻿using Ledict.ConditionExtract.DAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class RuleInfosBLL
    {
        RuleInfosDAL dal = new RuleInfosDAL();

        /// <summary>
        /// 获取RuleInfoParmeterRelation表参数数据
        /// </summary>
        public DataTable RuleInfoParmeterRelationData(string rIuId)
        {
            return dal.RuleInfoParmeterRelationData(rIuId);
        }

        /// <summary>
        /// 查询PLID是否有多条
        /// </summary>
        public string GetPLIDCount(string rIuId, string plId)
        {
            return dal.GetPLIDCount(rIuId, plId);
        }

        /// <summary>
        /// 删除RuleInfoParmeterRelation表数据
        /// </summary>
        public bool RuleInfoParmeterRelationDelete(string rIuId, string plId)
        {
            return dal.RuleInfoParmeterRelationDelete(rIuId, plId);
        }

        /// <summary>
        /// 删除Riu_ParameterList表数据
        /// </summary>
        public bool Riu_ParameterDelete(string rIuId, string plId)
        {
            return dal.Riu_ParameterDelete(rIuId, plId);
        }

        /// <summary>
        /// 获取Riu_RuleRelation表参数数据
        /// </summary>
        public DataTable Riu_RuleRelationData(string rIuId)
        {
            return dal.Riu_RuleRelationData(rIuId);
        }

        /// <summary>
        /// 查询PLID是否有多条
        /// </summary>
        public DataTable RR_RelationTable_IDNum(string rIuId, string rrrId)
        {
            return dal.RR_RelationTable_IDNum(rIuId, rrrId);
        }

        /// <summary>
        /// 删除RuleInfoParmeterRelation表数据
        /// </summary>
        public bool Riu_RuleRelationDelete(string rIuId, string rrId)
        {
            return dal.Riu_RuleRelationDelete(rIuId, rrId);
        }

        /// <summary>
        /// 删除RuleInfoParmeterRelation表数据
        /// </summary>
        public bool Riu_ParameterDelete(string rrId, int rrExecuteMode)
        {
            return dal.Riu_ParameterDelete(rrId, rrExecuteMode);
        }

        /// <summary>
        /// 删除RuleInfoUnit表数据
        /// </summary>
        public bool RuleInfoUnitDelete(string rIuId)
        {
            return dal.RuleInfoUnitDelete(rIuId);
        }

        }
}
